package com.aifund.admin.controller;

import com.aifund.admin.entity.form.user.UserListForm;
import com.aifund.admin.entity.vo.PageResult;
import com.aifund.admin.entity.vo.UserListVo;
import com.aifund.admin.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/user")
public class UserController {

    @Autowired
    UserService userService;

    @GetMapping("/userList")
    public PageResult<UserListVo> userList(UserListForm form){
       return userService.page(form);
    }



}
